package com.gsafety.wellsfort.dao.course;

import com.gsafety.wellsfort.domain.model.course.CourseRange;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CourseRangeDAO {
    int deleteByPrimaryKey(Integer id);

    int deleteByCourseId(Integer courseId);

    int insert(CourseRange record);

    int insertBatch(List<CourseRange> rangeList);

    int insertSelective(CourseRange record);

    CourseRange selectByPrimaryKey(Integer id);

    List<CourseRange> selectByCourseId(Integer courseId);

    List<CourseRange> selectByCondition(@Param("courseId") Integer courseId, @Param("schoolId") Integer schoolId, @Param("classId") Integer classId);

    int updateByPrimaryKeySelective(CourseRange record);

    int updateByPrimaryKey(CourseRange record);


     List<CourseRange> selectCommonCourseRange();
}